package com.finance.system.dao;

import com.finance.system.bean.pojo.Region;
import com.finance.system.bean.pojo.RegionDetail;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;
import java.util.List;
import java.util.Map;

@Component
public interface RegionCodeMapper {
	List<Region> listAll();

	List<Map> getProvinces();

	List<Region> getByName(String name);

	List<Region> getByNameAndLevel(@Param("name") String name, @Param("level") int level);

	Region getByCode(String code);

	RegionDetail getDetailByCode(String code);

	String getCodeByName(String name);

	String getCodeByNameAndParent(@Param("name")String  name,@Param("parent")String parent);

	List<Region> getProvinceList();

    List<Region> getCityList(@Param("provinceCode") String code);

    String getNameByCode(@Param("code") int code);
}